#include <iostream>
#include <string> //用C++风格字符串时候，要包含这个头文件
using namespace std;

int main(){
    //1.C风格字符串
    //char 字符串名[] 双引号
    char str1[] = "hello world";
    cout << "str1 = " << str1 << endl;

    //2.C++风格字符串
    string str2 = "hello world!";
    cout << "str2 = " << str2 << endl;
    system("pause");
    return 0;
}